package com.hnucm.c202001020216.pojo;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.List;

@lombok.NoArgsConstructor
@lombok.Data
public class Car implements Serializable{

    @SerializedName("msg")
    public String msg;
    @SerializedName("code")
    public Integer code;
    @SerializedName("page")
    public PageDTO page;

    @lombok.NoArgsConstructor
    @lombok.Data
    public static class PageDTO implements Serializable{
        @SerializedName("totalCount")
        public Integer totalCount;
        @SerializedName("pageSize")
        public Integer pageSize;
        @SerializedName("totalPage")
        public Integer totalPage;
        @SerializedName("currPage")
        public Integer currPage;
        @SerializedName("list")
        public List<ListDTO> list;

        @lombok.NoArgsConstructor
        @lombok.Data
        public static class ListDTO implements Serializable {
            @SerializedName("id")
            public Integer id;
            @SerializedName("brandId")
            public Integer brandId;
            @SerializedName("carName")
            public String carName;
            @SerializedName("carPic")
            public String carPic;
            @SerializedName("carType")
            public String carType;
            @SerializedName("carPrice")
            public Double carPrice;
        }
    }
}
